package com.easy.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "easy-carts")
@Service
public interface CartFeignService {

    @RequestMapping(method = RequestMethod.DELETE,path="/cart/feign/{userid}/{productid}")
    int deleteCart(@PathVariable("userid") int userid, @PathVariable("productid")int productid);
}
